﻿using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using TfsStatus.Infrastructure;

namespace TfsStatus
{
	public class FilterConfig
	{
		public static void RegisterGlobalFilters(GlobalFilterCollection filters)
		{
			GlobalConfiguration.Configuration.Filters.Add(new NLogExceptionFilterAttribute());
			
			filters.Add(new NLogExceptionFilterAttribute());
			filters.Add(new HandleErrorAttribute());
		}
	}
}